package com.seagull.sb.security;

import com.seagull.sb.domain.Student;

public class UserStudent extends BaseUser{
    private Student student;
    
    public UserStudent(Student student){this.setStudent(student);}
	public int getOrgId(){return getStudent().getOrgId();}
	public int getClassId(){return getStudent().getClassId();}
	public int getStudentId(){return getStudent().getId();}
	public int getTeacherId(){return 0;}
	public Role getRole(){return Role.student;}
	public boolean isTeacher(){return false;}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
}